<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        ul li{
            color: palevioletred;
        }
        div p{
            color: yellowgreen;
        }

    </style>
</head>
<body>
    <ul>
        <li>aaa</li>
        <li>bbb</li>
        <li><div>123</div><a href="#">ccc</a></li>
    </ul>

    <div>
        父父父父父
        <p>子子子子子子子子<p>孙孙孙孙孙孙 <a href="#">重孙</p></span></p>
    </div>
    <!-- 所有后代都会被选中 -->
</body>
</html>